<?php
//require '../application/models/orm/Category.php';

require '../application/models/orm/Usuario.php';


class IndexController extends Zend_Controller_Action
{
    public function indexAction ()
    {
        $em = $this->getInvokeArg('bootstrap')->getResource('entityManager');
       
       
        $query = $em->createQuery("SELECT u FROM Usuario u");
        $users = $query->getResult();
        
        echo "aplicque";
        var_dump($users[0]);

        
        $auth = Zend_Auth::getInstance();
        if ($auth->hasIdentity()) {
            return $this->_helper->redirector->gotoSimple('index', 'dashboard');
        }
    }
}